﻿namespace HCMS.Const
{
    /// <summary>
    /// 常量 - 管理系统
    /// </summary>
    public class ManageConst
    {
        /// <summary>
        /// 登录 Cookie 名称
        /// </summary>
        public const string LoginCookieName = "HCMS_MANAGE_ACCOUNT_KEY";

        /// <summary>
        /// 超级管理员 角色 Id
        /// </summary>
        public const int SuperRoleId = 9999;

        /// <summary>
        /// 超级管理员 姓名
        /// </summary>
        /// <remarks>
        /// 多个管理员，使用 , 分隔
        /// </remarks>
        public const string SuperAdminName = "adminSystem123";
    }

    /// <summary>
    /// 常量 - 管理系统[认证数据信息]
    /// </summary>
    public class ManageConst_ClaimTypes
    {
        /// <summary>
        /// Id
        /// </summary>
        public const string Id = "id";

        /// <summary>
        /// 姓名
        /// </summary>
        public const string Name = "name";

        /// <summary>
        /// 角色 Id
        /// </summary>
        public const string RoleId = "roleId";

        /// <summary>
        /// 时间戳
        /// </summary>
        public const string ts = "ts";
    }

    /// <summary>
    /// 管理系统 - Redis 键
    /// </summary>
    public class Manage_RedisKey
    {
        /// <summary>
        /// 登录信息 key
        /// </summary>
        public static string Logined = "authorize:{0}";

        /// <summary>
        /// 在线状态 key
        /// </summary>
        public static string OnlineStatus = "online_status:{0}";

        /// <summary>
        /// 角色 菜单列表 key
        /// </summary>
        public static string RoleMenuList = "menu:role_{0}:list";

        /// <summary>
        /// 角色 管理系统 菜单树 key
        /// </summary>
        public static string RoleMenuTree = "menu:role_{0}:menutree";
    }
}
